package com.hk.core.autoconfigure.weixin.miniapp;

import cn.binarywang.wx.miniapp.constant.WxMaConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * 微信小程序配置属性
 *
 * @author Kevin
 */
@Data
@RefreshScope
@ConfigurationProperties(prefix = "wx.mini")
public class WeiXinMiniappProperties {

    private String appId;

    private boolean enabled;

    private String secret;

    /**
     * 设置微信小程序的 token
     */
    private String token;

    /**
     * 设置微信小程序的 aesKey
     */
    private String aesKey;

    private String msgDataFormat = WxMaConstants.MsgDataFormat.JSON;

    /**
     * 登陆地址
     */
    private String loginUrl = "/wxmini/login";
}
